﻿﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<title>商品库存</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<c:set value="${pageContext.request.contextPath}" var="path"
	scope="page" />
<link rel="stylesheet" type="text/css"
	href="${path}/bootstrap-3.3.5-dist/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css"
	href="${path}/bootstrap-3.3.5-dist/dist/css/dataTables.bootstrap.css">
</head>

<body style="padding: 10px;">
	<div class="box box-solid">
		<form id="form1" action="findCargo.action" method="post" class="form form-inline"
			style="padding: 10px 0px;">
			<input type="hidden" id="tab" name="tab" value="0"> <label>商品名称：
				<input type="text" class="form-control" placeholder="请输入商品名称"
				id="cargoName" name="cargoName" value="">
			</label> <input type="submit" class="btn btn-default" value="搜索"> <a
				href="forwardIC.action"> <input type='button' value="进货"
				class="btn btn-success"></input>
			</a>
			<a href="dispatherTosub.action">
			 <input type='button' value="分配订单 " class="btn btn-success"></input>
			</a>
		</form>
	</div>
	<table class="table table-bordered table-hover table-condensed">
		<thead>
			<tr>
				<td>商品名称</td>
				<td>商品数量</td>
				<td>商品价格</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${cs }" var="c">
				<tr>
					<td>${c.cargoName }</td>
					<td>${c.cargoCount }</td>
					<td>￥${c.cargoPrice }</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>

</html>